package com.example.demo.common;

public class UserUtil {


    private static ThreadLocal<User> currentUser = new ThreadLocal<>();

    public static User getUser(){
        return currentUser.get();
    }
    public static  void setUser(User user){
         currentUser.set(user);
    }

}
